.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgb(255, 255, 255);
    // background:url('@src/assets/img/bg.gif');
    // background-size: 100% 100%;
    // background-repeat:no-repeat;

    .login-form {
        max-width: 600px;
        padding: 30px 50px;
        border-radius: 8px;
        box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.1);
    }

    .loginFormTitle {
        height: 60px;
        margin-bottom: 24px;
    }

    .login-form-forgot {
        float: right;
    }

    .login-form-no-margin-bottom {
        width: 350px;
        margin-bottom: 0px;
    }

    .login-form-button {
        width: 100%;
    }

}

.login-title {
    font-weight: 800;
    font-size: 24px;
    font-family: Lato, serif;
    line-height: 60px;
    letter-spacing: 0.1rem;
    text-align: center;
    text-transform: uppercase;
    color: aqua;
    span {
        animation: rainbow 15s alternate infinite forwards;
        -webkit-animation: rainbow 15s alternate infinite forwards;
    }
}

.persent(@className, @pre){
    @{className}{
        color: hsl(@pre, 75%, 75%);
    }
}


@keyframes rainbow {
    .loop(@i) when (@i < 21) {
        .persent(percentage(@i * 0.05),@i * 0.05 * 1000);
        .loop(@i+1);
    }
    .loop(1);
}

// 下面的 sass写法 也可以实现一样的效果
// .login-title {
//     font-weight: 800;
//     font-size: 32px;
//     font-family: Lato, serif;
//     line-height: 60px;
//     letter-spacing: 0.2rem;
//     text-align: center;
//     text-transform: uppercase;

//     span {
//         animation: rainbow 10s alternate infinite forwards;
//         -webkit-animation: rainbow 10s alternate infinite forwards;
//     }
// }

// @keyframes rainbow {
//     @for $i from 0 to 20 {
//         #{percentage($i * 0.05)} {
//             color: hsl(random(360%), 75%, 75%);
//         }
//     }
// }

